<div id="box">
<h1 style="color:#FF3300";><?php echo $hotel['name']." - ".$hotel['provide'] ?></h1>
  <form action="<?php echo base_url();?>admin/hotelroom/<?php if(isset($_GET['id'])) echo "update?hotelid=".$_GET['hotelid']."&id=".$_GET['id'];else echo "insert?hotelid=".$_GET['hotelid'];?>" method="post" enctype="multipart/form-data">
    <fieldset id="person">
      <legend>&nbsp;&nbsp;<?php if(isset($_GET['id'])) echo "Edit ";else echo "Insert "; ?> Hotel's Room&nbsp;&nbsp;</legend>
      <label>ID : </label>
      <?php echo $detail['id'] ?><br>
      <label>Name : </label>
      <input type="text" required name="name" value="<?php echo $detail['name'] ?>"/>
      <br>
      <label>Max Person : </label>
      <select name="maxperson">
        <option value="-1">Choice Number Person</option>
        <?php for($i=0;$i<=6;$i++){?>
        <option value="<?php echo $i ?>" <?php if($detail['maxperson']==$i) echo "selected";?>><?php echo "0".$i ?> Person</option>
        <?php } ?>
      </select>
      <br>
      <label>N.o Room : </label>
      <select name="numberroom">
        <option value="-1">Choice Number Room</option>
        <?php for($i=0;$i<=20;$i++){?>
        <option value="<?php echo $i ?>" <?php if($detail['numberroom']==$i) echo "selected";?>><?php echo $i ?> Room</option>
        <?php } ?>
      </select>
      <br>
      <label>Avatar</label>
      <input type="file" name="fuavatar" />
      <img src="<?php echo base_url().'uploads/hotelroom/'. $detail['avatar'] ?>" width="150"/><br>
      <label>Description</label>
       <?php $fck = new FCKeditor('description');
			 $fck->BasePath = sBASEPATH;
			 $fck->Value  = $detail['description'];					
			 $fck->Width  = '100%';
			 $fck->Height = 400;
			 $fck->Create();
		   ?>
      <br>
      <label>Room's Facilities</label>
       <?php $fck = new FCKeditor('facilities');
			 $fck->BasePath = sBASEPATH;
			 $fck->Value  = $detail['facilities'];					
			 $fck->Width  = '100%';
			 $fck->Height = 400;
			 $fck->Create();
		   ?>
      <br>
      <label>Extra Bed</label>
       <?php $fck = new FCKeditor('extrabed');
			 $fck->BasePath = sBASEPATH;
			 $fck->Value  = $detail['extrabed'];					
			 $fck->Width  = '100%';
			 $fck->Height = 400;
			 $fck->Create();
		   ?>
      <br>
      <label>Room's Conditions</label>
       <?php $fck = new FCKeditor('conditions');
			 $fck->BasePath = sBASEPATH;
			 $fck->Value  = $detail['conditions'];					
			 $fck->Width  = '100%';
			 $fck->Height = 400;
			 $fck->Create();
		   ?>
      <br>
      <label>Type</label>
      <select name="type" >
        <option value="1" <?php if($detail['type']==1) echo "selected";?>>Home Stay</option>
        <option value="2" <?php if($detail['type']==2) echo "selected";?>>Budget</option>
        <option value="3" <?php if($detail['type']==3) echo "selected";?>>Standard</option>
        <option value="4" <?php if($detail['type']==4) echo "selected";?>>Superior</option>
        <option value="5" <?php if($detail['type']==5) echo "selected";?>>Deluxe</option>
        <option value="6" <?php if($detail['type']==6) echo "selected";?>>Luxury</option>
        <option value="7" <?php if($detail['type']==7) echo "selected";?>>Suite Village</option>
        <option value="8" <?php if($detail['type']==8) echo "selected";?>>Pent House</option>
      </select>
      <br>
      <label>Status</label>
      <select name="status">
        <option value="-1">Choice Status</option>
        <option value="0" <?php if($detail['status']==0) echo "selected";?>>Highlights</option>
        <option value="1" <?php if($detail['status']==1) echo "selected";?>>Normal</option>
        <option value="2" <?php if($detail['status']==2) echo "selected";?>>Hide</option>
      </select>
      <br>      
      <div style="float:left;padding-top:5px;padding-left:40%;">
        <input type="reset" value="Reset">
        &nbsp;&nbsp;&nbsp;&nbsp;
        <input type="submit" value="Submit">
      </div>
    </fieldset>
  </form>
</div>
